package com.wondertek.poms.pre.utils.callback;


import java.util.ArrayList;
import java.util.List;

import com.wondertek.poms.dao.po.SyncTask;
import com.wondertek.poms.transform.xmlvo.SyncRequest;

import lombok.Data;


@Data
public class ContentResponse {

    public static String RESULT_SUCCESS = "0";
	public static String RESULT_FAILED = "1";
    private String accessId;
    private String accessSeq;
    private String accessPwd;
    private String accessPlatformType;
    private String accessPlatformID;
    private String version;
    private String contentID;
    private String cpID;
    private String oprCode;
    private String oprTime;
    private String priority;
    private String servType;
    private String result;
    private List<String> items = new ArrayList<String>();

    public ContentResponse() {
    }

    public ContentResponse(SyncRequest syncRequest) {
        this.accessId = syncRequest.getAccessID();
        this.accessPlatformID = syncRequest.getAccessPlatformID();
        this.accessPlatformType = syncRequest.getAccessPlatformType();
        this.accessPwd = syncRequest.getAccessPwd();
        this.accessSeq = syncRequest.getAccessSeq();
        this.contentID = syncRequest.getSvcCont().getContentID();
        this.cpID = syncRequest.getSvcCont().getCpId();
        this.oprCode = syncRequest.getSvcCont().getOprCode();
        this.oprTime = syncRequest.getSvcCont().getOprTime();
        this.priority = syncRequest.getSvcCont().getPriority();
        this.servType = syncRequest.getSvcCont().getServType();
        this.version = syncRequest.getVersion();
    }

	public ContentResponse(SyncTask st) {
		this.accessId = st.getAccessId();
        this.accessPlatformID = st.getAccessPlatformId();
        this.accessPlatformType = st.getAccessPlatformType();
        this.accessPwd = st.getAccessPwd();
        this.accessSeq = st.getAccessSeq();
        this.contentID = st.getContentId();
        this.cpID = st.getCpId();
        this.oprCode = st.getOprCode();
        this.oprTime = st.getOprTime();
        this.priority = st.getPriority();
        this.servType = st.getServType();
        this.version = st.getVersion();
	}
}
